/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TokensDelLenguaje;

import java.util.ArrayList;

/**
 *
 * @author ismael
 */
public class PruebaEnum {
        
    public static void main (String[] args) throws InstantiationException, IllegalAccessException, CloneNotSupportedException{
        
        Tokens tkClonado = null;
        Tokens tk1 = Tokens.asignacion;
        Tokens tk2 = Tokens.const_uinteger;
        
        Token token_tk1 = new Token(tk1);
        Token token_tk2 = new Token(tk2);
        Token token_tkClonado = new Token();
        
     /* tkClonado = tk1;
        tk1 = Tokens.eof;
        
        System.out.println(tk1.toString());
        System.out.println(tkClonado.toString());
     */
        token_tkClonado.setId(token_tk1.getId());
        token_tk1.setId(tk2);
        
        System.out.println("Clonado = tk1 asignacion " + token_tkClonado.toString());
        System.out.println("tk2 = const_uinteger " + tk2.toString());
        System.out.println("tk1 = tk2 const_uinteger " + token_tk1.toString());
        System.out.println("deberia ser token_tkClonado = asignacion Ex tk1 " + token_tkClonado.toString());
        
        
        Token_Struct Est = new Token_Struct ("Hola Prueba");
        ArrayList lista = new ArrayList();
        
        Token_Identificador token_ID1 = new Token_Identificador("ID1");
        Token_Identificador token_ID2 = new Token_Identificador("ID2");
        
        lista.add(token_ID1);
        lista.add(token_ID2);
        
        Est.agregarElementos(lista);
        //this.ts.set(Est);
        
    }
    
}
